package nml.mail.reg.smtp;
import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  nx_cninfo_net extends Reg{

	public void reg(String username, String password) {		
		
		//http://www.nx.cninfo.net/zhuanti/mail/mfy_index.html
		String url = "http://202.100.100.172/php/report/osignup.php";
		get(url);
		
		dr.findElement(By.name("LoginName")).sendKeys(username);
		dr.findElement(By.name("Password")).sendKeys(password);
		dr.findElement(By.name("Confirm")).sendKeys(password);
		
		dr.findElement(By.name("FirstName")).sendKeys("林肯");
		dr.findElement(By.name("question")).sendKeys("我不知道?");
		dr.findElement(By.name("answer")).sendKeys("224544");
		 
		
		
		
		dr.findElement(By.name("validate")).click();
		
		
		System.out.println(username+"@sina.cn");
	}

	public static void main(String[] args) {
		new nx_cninfo_net().reg("qq331798654", "qq3131798654");
	}
	
	
}
